-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename defs to entity_models. Simplify Jinja rendering #232
Conversation
* rename definition to entity_model * test_list working * all tests passing * lint * remove redundant changes * revert id_to_entity changes
@@ -17,7 +17,7 @@ | |||
] | |||
|
|||
|
|||
class DefinesTypes(Enum): | |||
class DefineTypes(Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this still has one too many s
s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
@@ -54,60 +55,69 @@ class Entity(BaseSettings): | |||
entity_enabled: bool = Field( | |||
description="enable or disable this entity instance", default=True | |||
) | |||
__definition__: EntityDefinition | |||
__definition__: EntityModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field should probably have a new name too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not getting you - that is the new name we settled on
* make args and defines lists into dicts * rename Args to Params * first version of support yaml converter * completed converter * fixes to get tests working with list2dict * remove redundant dlsPLC expansion test * convert all support yaml to new schema * restore incorrect test output samples * fix id lookup issue * fix remaining tests * tidy formatting in converter * add __utils__ conversion for support and ioc yaml * add old samples to gitignore for testing * improve error reporting in converter * Rename defs to entity_models. Simplify Jinja rendering (#232) * rename definition to entity_model * test_list working * all tests passing * lint * remove redundant changes * revert id_to_entity changes * name changes "parameters" "entity_models" * update support schema * make args and defines lists into dicts * rename Args to Params * first version of support yaml converter * completed converter * fixes to get tests working with list2dict * remove redundant dlsPLC expansion test * convert all support yaml to new schema * restore incorrect test output samples * fix id lookup issue * fix remaining tests * tidy formatting in converter * add __utils__ conversion for support and ioc yaml * add old samples to gitignore for testing * improve error reporting in converter * Rename defs to entity_models. Simplify Jinja rendering (#232) * rename definition to entity_model * test_list working * all tests passing * lint * remove redundant changes * revert id_to_entity changes * name changes "parameters" "entity_models" * update support schema * tidy comments * replace "definition" with "model" throughout * fix system test * arg --> param * DefineTypes -> DefineType * Update src/ibek/entity_model.py Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk> * Update src/ibek/ioc.py Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk> * arg --> param again * error on no id in Entity.__str__ * Update src/ibek/entity_model.py Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk> * clarify ID and _get_id_arg * update ibek2to3 header comment --------- Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk>
No description provided.